<?php

use Biz\service\designerAward\Main as sMain;
/**
 * @deprecated
 */
class GetCaseAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $uid = $this->uid;

        $request = $this->getRequest()->getPost();
        if(!empty($request)){
            foreach($request as $_k=>&$_v){
                $data[$_k] = $_v;
            }
        }

        $data['uid'] = $uid;

        if(empty($data['uid'])){
            throw new \Exception('用户不能为空');
        }else{
            $list = sMain::getCases($data);
            $result = $list;
            $this->setSuccess($result);
        }
    }
}